<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    Mock.mock('api,com',{
        'image|30':['@image(300*300,@color)']
    })
</script>
<script>
    $.ajax({
        type:'get',
        url:'pai.com',
        dataType:'json',
        success:function (res) {
            renderList (res.image);
        },
        fai:function () {

        }
    })
    function renderList(list) {
        list.reduce(function (prev,current,index,arr) {
            prev += '';
            return prev;

        },'');

    }
</script>
</body>
</html>